Skip to content

Conversation

@adbac
Copy link

@adbac adbac commented Jul 11, 2025

This would add support for the cvParameters block, that defines UI names for the cv01 to cv99 features (character variants). Accessible through writer.characterVariantNames (and writer.formatCharacterVariantNames for formatting).

The names dictionary would be of the following form:

name = {
    "type": "type for this name",
    # 'type' must be one of [FeatUILabelNameID, FeatUITooltipTextNameID, SampleTextNameID, ParamUILabelNameID]
    "text" : "name for string",
    "platform" : int, # optional
    "script" : int, # optional
    "language" : int, # optional
}

I wonder whether the formatCharacterVariantNames method should fail silently or throw an error when the value for the type key of the dict is not one of FeatUILabelNameID, FeatUITooltipTextNameID, SampleTextNameID or ParamUILabelNameID. Right now it just skips the name dict when it's not the case.

This pull request would also update the README to reflect the changes and fix the doc for writer.stylisticSetNames that was documented as writer.stylisticSetFeatureNames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant